﻿@if ( Request.IsAuthenticated )
{
    <text>
    Hello, @User.Identity.Name!
        @using ( Html.BeginForm( "LogOff", "Account", FormMethod.Post, new { id = "logoutForm" } ) )
        {
            @Html.AntiForgeryToken()
            <a id="logOff" href="javascript:document.getElementById('logoutForm').submit()">Log me out, homie.</a>
        }
    </text>
}